package com.xcity.pomelo.response;

import com.xcity.db.entity.Player;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class PlayerMoneyResponse extends Response {

	private long gold;
	private int stone;
	private long totalGold; // 固资
	
	public PlayerMoneyResponse(int serial, Player player) {
		super(serial);
		this.gold = player.getGold();
		this.stone = player.getStone();
		this.totalGold = player.getFixedAssets();
	}

	public long getGold() {
		return gold;
	}

	public void setGold(long gold) {
		this.gold = gold;
	}

	public int getStone() {
		return stone;
	}

	public void setStone(int stone) {
		this.stone = stone;
	}

	public long getTotalGold() {
		return totalGold;
	}

	public void setTotalGold(long totalGold) {
		this.totalGold = totalGold;
	}

}
